// import Home from './main/Home.vue'
// import My from './main/My.vue'
import VueRouter from 'vue-router'
import index from './main/Index.vue'
import searchList from './main/searchList.vue'
import PlayList from './main/PlayList.vue'
import Login from './subcom/Login.vue'
import DailySongs from './main/DailySongs.vue'
import TopPlaylist from './main/TopPlaylist.vue'
import Toplist from './main/Toplist.vue'
import MyRadio from './main/MyRadio.vue'
import Comment from './main/Comment.vue'

//配置路由
var router = new VueRouter({
    routes: [
        { path: '/', redirect: '/index' },
        { path: '/index', component: index },
        {
            path: '/searchList', component: searchList,
        },
        { path: '/playlist/:id/', component: PlayList },
        { path: '/login', component: Login },
        { path: '/dailysongs', component: DailySongs },
        { path: '/topplaylist', component: TopPlaylist },
        { path: '/toplist', component: Toplist },
        { path: '/myradio/:id', component: MyRadio },
        { path: '/comment/:id', component: Comment }
    ],
    linkActiveClass: "active"
})

//向外暴露路由对象
export default router
